package com.dxy.df.modules.dao;

import com.dxy.df.core.model.BaseMapper;
import com.dxy.df.modules.bean.vo.DfArticleVo;
import com.dxy.df.modules.bean.query.DfArticleQuery;
import com.dxy.df.modules.bean.entity.DfArticleEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 文章表
 * @author biz@dxy.cn
 * @email biz@dxy.cn
 * @date 2019-10-25 16:23:46
 */
@Mapper
public interface DfArticleMapper
        extends BaseMapper<DfArticleEntity,DfArticleVo,DfArticleQuery> {


    List<DfArticleVo> selectNoCommentArticle();

    void updateCount(Integer id);

    DfArticleVo queryDetail(Integer id);

    Integer queryCommentCount(Integer id);

    Integer queryLikeCount(Integer id);

    List<DfArticleVo> selectTop();

}
